<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class signin_model extends CI_Model {
	/**
	 * Verifica se existe o usuário
	 * @param $email String Email do usuário
	 * @param $password String Senha do usuário
	 * @return Array
	 * */
	public function check_login($email, $password) {
		$where = array(
			'user_email' => $email,
			'user_password' => md5($password),
			'user_active' => 1
		);
		
		return $this->db->get_where('vw_users', $where)->result_array();
	}
}